* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    background-color: #f5f5f5;
    color: #271E4A;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 194px;
    background-color: #fff;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 15px rgba(216, 210, 252, 0.3);
    position: relative;
    z-index: 10;
    height: 100vh;
    overflow-y: auto;
}

/* Profile Section */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 50px;
}

.profile-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0px 4px 15px 1px rgba(216, 210, 252, 0.64);
    margin-bottom: 10px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    text-align: center;
    margin-top: 10px;
}

.profile-info p {
    font-size: 18px;
    line-height: 1.33;
    color: #271E4A;
}

.collapse-button {
    position: absolute;
    top: 10px;
    right: -16px;
    width: 32px;
    height: 32px;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 15px 0px rgba(216, 210, 252, 0.64);
    opacity: 0.5;
    cursor: pointer;
}

.collapse-button img {
    width: 18px;
    height: 18px;
}

/* Menu Items */
.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.menu-item:hover {
    background-color: rgba(216, 210, 252, 0.1);
}

.menu-item.active {
    background-color: #fff;
    box-shadow: 0px 4px 15px 0px rgba(216, 210, 252, 0.64);
}

.icon-container {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.icon-container img {
    max-width: 100%;
    max-height: 100%;
}

.menu-text {
    font-size: 18px;
    color: #271E4A;
}

/* Dashboard Icon */
.dashboard-icon {
    width: 33px;
    height: 33px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 5px;
    margin-right: 10px;
}

.dashboard-box {
    width: 14px;
    height: 14px;
    border: 2px solid #271E4A;
    border-radius: 6px;
}

.dashboard-circle {
    width: 14px;
    height: 14px;
    background-color: #FFDBD9;
    border: 2px solid #271E4A;
    border-radius: 50%;
}

/* Logout Item */
.menu-item.logout {
    margin-top: auto;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
    height: 100vh;
}

/* Header Section */
.header {
    margin-bottom: 30px;
}

.profile-section {
    display: flex;
    align-items: center;
}

.file-icon {
    width: 70px;
    margin-right: 15px;
}

h1 {
    font-size: 42px;
    font-weight: 500;
    color: #271E4A;
}

/* Content Section */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Patient Information Section */
.patient-info-section {
    background-color: #FFFFFF;
    border-radius: 47px;
    padding: 30px;
    box-shadow: 0px 4px 15px 0px rgba(216, 210, 252, 0.64);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 24px;
    font-weight: 500;
    color: #271E4A;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #FFFFFF;
    cursor: pointer;
}

.patient-list {
    background-color: #FF706F;
}

.add-patient {
    background-color: #CA79C6;
}

.patient-details {
    display: flex;
    gap: 30px;
}

.patient-photo {
    width: 225px;
    height: 225px;
    border-radius: 47px;
    overflow: hidden;
}

.patient-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.patient-data {
    flex: 1;
    background-color: #FFFFFF;
    border-radius: 47px;
    padding: 30px;
    display: flex;
    gap: 40px;
    box-shadow: 0px 4px 15px 0px rgba(216, 210, 252, 0.64);
}

.data-section {
    flex: 1;
}

h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #271E4A;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #271E4A;
    opacity: 0.8;
}

input, select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #E0E9F4;
    border-radius: 5px;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
}

/* History Section */
.history-section {
    display: flex;
    gap: 25px;
}

.visit-history, .general-report {
    background-color: #FFFFFF;
    border-radius: 47px;
    padding: 30px;
    box-shadow: 0px 4px 15px 0px rgba(216, 210, 252, 0.64);
}

.visit-history {
    flex: 1.3;
}

.general-report {
    flex: 1;
}

.table-container {
    margin-top: 20px;
}

.table-header {
    display: flex;
    background-color: #EDF4FC;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.header-cell {
    flex: 1;
    font-size: 14px;
    font-weight: 300;
    color: #271E4A;
    opacity: 0.9;
}

.table-row {
    display: flex;
    padding: 10px 15px;
    border-bottom: 1px solid #E0E9F4;
    margin-bottom: 10px;
}

.cell {
    flex: 1;
    font-size: 14px;
    color: #271E4A;
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background-color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 15px 0px rgba(185, 178, 226, 0.64);
    cursor: pointer;
}

.action-btn img {
    width: 16px;
    height: 16px;
}

/* Report Content */
.report-content {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    text-align: center;
    color: #271E4A;
    opacity: 0.6;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .history-section {
        flex-direction: column;
    }
    
    .patient-details {
        flex-direction: column;
    }
    
    .patient-photo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 80px;
    }
    
    .menu-text {
        display: none;
    }
    
    .profile-info {
        display: none;
    }
    
    .collapse-button {
        display: none;
    }
    
    .dashboard-icon {
        margin-right: 0;
    }
    
    .icon-container {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        padding: 15px;
        flex-direction: row;
        overflow-x: auto;
        justify-content: space-between;
    }
    
    .profile {
        display: none;
    }
    
    .menu-item {
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .menu-item.logout {
        margin-top: 0;
    }
    
    .main-content {
        padding: 20px;
        height: auto;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .table-header, .table-row {
        font-size: 12px;
    }
    
    .patient-data {
        flex-direction: column;
    }
} 